<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>SKU</th>
                    <th width="15%">产品名称</th>
                    <th width="15%">入库单号</th>
                    <th>入库数量</th>
                    <th>入库日期</th>
                    <th>收货人</th>
                </tr>
                </thead>
                <tbody>
                @if($sDetail->isEmpty())
                    <tr>
                        <td colspan="6">暂无入库记录！</td>
                    </tr>
                @else
                    @foreach($sDetail as $item)
                        <tr>
                            <td>{{ $item->sku->psku_code ?? '' }}</td>
                            <td>{{ $item->sku->psku_cn ?? '' }}</td>
                            <td>{{ $item->storage_no }}</td>
                            <td>{{ $item->storage_num }}</td>
                            <td>{{ $item->created_at }}</td>
                            <td>{{ \App\Util\User::getUsernameById($item->storage->cuser_id ?? 0) }}</td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
        </div>
    </div>
</div>
